﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StoragePeriod.Model.FoodTesting;

namespace StoragePeriod.IDAL.FoodTesting
{
    /// <summary>
    /// 矿物质含量
    /// </summary>
    public interface I_MineralData
    {
        /// <summary>
        /// 获取检查数据实体
        /// </summary>
        /// <param name="eVcData">查询ID</param>
        /// <returns>返回对应的实体</returns>
        E_MineralData GetDataEntityById(E_MineralData eMineralData);

        /// <summary>
        /// 根据原料ID和检测时间 删除检测记录
        /// </summary>
        /// <param name="eVcData">要删除的检测记录</param>
        /// <returns></returns>
        int RemoveByTime(E_MineralData eMineralData);

        /// <summary>
        /// 删除某一次检测记录
        /// </summary>
        /// <param name="eVcData">要删除的检测记录</param>
        /// <returns></returns>
        int RemoveByFoodNum(E_MineralData eMineralData);

        /// <summary>
        /// 根据原料ID 和检测时间 获取所有的检测记录
        /// </summary>
        /// <param name="eVcData">要获取的检测记录</param>
        /// <returns></returns>
        List<E_MineralData> GetDataListByTime(E_MineralData eMineralData);

        /// <summary>
        /// 增加一条数据
        /// </summary>
        int Add(E_MineralData eMineralData);
    }
}
